projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3f175
)
widget: Clear pending resizes after size_allocate()
author
Benjamin Otte
<otte@redhat.com>
Mon, 28 Sep 2015 03:23:32 +0000
(
05:23
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 28 Oct 2015 18:44:28 +0000
(19:44 +0100)
This catches the cases where widgets call gtk_widget_queue_resize()
in their size_allocate() callback.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 15579a9cc1ea1c5c46016fc4cb015743158c2752..ce77407a64da9c12d09b268d97084d41e0de8581 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-5991,6
+5991,7
@@
gtk_widget_size_allocate_with_baseline (GtkWidget *widget,
GTK_WIDGET_GET_CLASS (widget)->size_allocate (widget, &real_allocation);
/* Size allocation is god... after consulting god, no further requests or allocations are needed */
+ gtk_widget_ensure_resize (widget);
priv->alloc_needed = FALSE;
size_changed |= (old_clip.width != priv->clip.width ||